home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-01-15 | 1.4 KB | 73 lines | [TEXT/MPS ] |
- #
- # File: Build
- #
- # Contains: Commands to build AV transport control sample code.
- #
- # Written by: Erik Staats
- #
- # Copyright: © 1996 by Apple Computer, Inc., all rights reserved.
- #
- # Change History (most recent first):
- #
- # <FW4> 6/28/96 ES Put quotes in the right place.
- # <FW3> 6/28/96 ES Added quotes for setting commands.
- # <FW2> 6/20/96 ES Filled in contains and written by fields.
- # <FW1> 6/20/96 ES first checked in
- #
- #
-
- set Commands `Directory`::Tools:,"{Commands}"
- export Commands
-
- unset BuildTargets
-
- ################################################################################
- #
- # Parse parameters.
- #
-
- for parm in {"Parameters"}
-
- # full build option
- if "{parm}" =~ /-e/
- set DoFullBuild 1
- export DoFullBuild
- continue
- end
-
- # default is a build target
- set BuildTargets "{BuildTargets} {parm}"
-
- end
-
- ################################################################################
- #
- # Build all targets.
- #
-
- for BuildTarget in {BuildTargets}
-
- if {DoFullBuild}
- Echo "# `Date -t` ----- Full Build of {BuildTarget}."
- else
- Echo "# `Date -t` ----- Build of {BuildTarget}."
- end
- Echo "# `Date -t` ----- Analyzing dependencies."
-
- Begin
- Echo "Set Echo 1"
- if {DoFullBuild}
- make -e -f MakeFile "{BuildTarget}"
- else
- make -f MakeFile "{BuildTarget}"
- end
- End > "{BuildTarget}".makeout
-
- Echo "# `Date -t` ----- Executing build commands."
- "{BuildTarget}".makeout
- delete -y "{BuildTarget}".makeout
-
- Echo "# `Date -t` ----- Done."
-
- end
-